import QtQuick 2.0
import "./Custom"

ScreenBase{
    id: menu
    anchors.fill: parent

    Rectangle{
        anchors.fill: parent
        color: "black"
        opacity: 0.5
    }

    Rectangle{
        width: _WIDTH/2
        height: _HEIGHT/2
        anchors.centerIn: parent
        color: "gray"

        TextBase{
            text: "战绩"
            font.pixelSize: 36
            anchors.horizontalCenter: parent.horizontalCenter
            y: 20
        }

        ButtonBase{
            text: "下一关"
            anchors.horizontalCenter: parent.horizontalCenter
            anchors.bottom: parent.bottom
            anchors.bottomMargin: 50
            onClicked: {
                menu.hide()
                startNextLevel()
                console.log(text)
            }
        }
    }

}
